<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'article-form',
	'enableAjaxValidation'=>true,
)); ?>

	<p class="note">
		Fields with <span class="required">*</span> are required.
	</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
	<?php echo $form->labelEx($model,'title'); ?>
	<?php echo $form->textField($model,'title'); ?>
	<?php echo $form->error($model,'title'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'contents'); ?>
	<?php $this->widget('application.components.DxhEditor.DxhEditor', array('model'=>$model,'attribute'=>'contents','htmlOptions'=>array('style'=>'width: 95%; height: 300px;'),));?>
	<?php echo $form->error($model,'contents'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'category'); ?>
	<?php echo $form->textField($model,'category');?>
	<?php echo $form->error($model,'category'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'sortby'); ?>
	<?php echo $form->textField($model,'sortby'); ?>
	<?php echo $form->error($model,'sortby'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'atrtype'); ?>
	<?php echo $form->textField($model,'atrtype'); ?>
	<?php echo $form->error($model,'atrtype'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'author'); ?>
	<?php echo $form->textField($model,'author'); ?>
	<?php echo $form->error($model,'author'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'thumb'); ?>
	<?php echo $form->textField($model,'thumb'); ?>
	<?php echo $form->error($model,'thumb'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'links'); ?>
	<?php echo $form->textField($model,'links'); ?>
	<?php echo $form->error($model,'links'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'artfrom'); ?>
	<?php echo $form->textField($model,'artfrom'); ?>
	<?php echo $form->error($model,'artfrom'); ?>
	</div>

	<div class="row buttons">
	<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

	<?php $this->endWidget(); ?>

</div>
<!-- form -->
